import {createApp} from 'vue'
import App from './App.vue'
import "@/assets/less/index.less";
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {createPinia} from 'pinia'

const pinia = createPinia()
const app = createApp(App);

// 注册路由
app.use(router)

//使用pinia
app.use(pinia)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// 注册element-plus
app.use(ElementPlus)

//挂载app
app.mount('#app')
